<%--
  Created by IntelliJ IDEA.
  User: zk
  Date: 2017/11/9
  Time: 10:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<blockquote class="layui-elem-quote">${title}</blockquote>

<div class="layui-row">
    <div class="col-md-6 col-md-offset-3">
        <form class="layui-form" action="${ctx}/sys/dict/save" data-pjax>
            <div class="layui-form-item">
                <label class="layui-form-label">键名</label>
                <div class="layui-input-block ">
                    <input name="label" value="${dict.label}" class="layui-input" lay-verify="required" lay-verType="tips" autocomplete="off" placeholder="键名"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">键值</label>
                <div class="layui-input-block ">
                    <input name="value" value="${dict.value}" class="layui-input" lay-verify="required" lay-verType="tips" autocomplete="off" placeholder="键值"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">类型</label>
                <div class="layui-input-block ">
                    <input name="type" value="${dict.type}" class="layui-input" lay-verify="required" lay-verType="tips" placeholder="类型"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">描述</label>
                <div class="layui-input-block ">
                    <input name="description" value="${dict.description}" class="layui-input" lay-verify="required" lay-verType="tips" autocomplete="off" placeholder="描述"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">排序值</label>
                <div class="layui-input-block ">
                    <input name="sort" value="${dict.sort}" class="layui-input" lay-verify="required" lay-verType="tips" autocomplete="off" placeholder="排序"/>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block ">
                    <button class="layui-btn " lay-submit="" lay-filter="">保存</button>
                    <a class="layui-btn layui-btn-primary" href="${ctx}/sys/dict/" data-pjax>返回</a>
                </div>
            </div>
        </form>
    </div>
</div>

<script>
    $(function(){
        var form = layui.form;
        form.render();

    });

</script>